package com.github.data_manage

import com.github.data_manage.dao.FundDao
import com.github.data_manage.service.FundService
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest

@SpringBootTest(classes = [DataManageApplication::class], webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class FundCodeTest {

    @Autowired
    lateinit var fundService: FundService

    @Autowired
    lateinit var fundDao: FundDao

    @Test
    fun fundCodeTest() {
//        fundService.buildFundCode(fundDao.findById(404).orElseThrow())
        fundService.buildAllFundCode()
//        fundService.deleteFundCode(fundDao.findById(404).orElseThrow())
    }

}
